package router

import (
	"github.com/gin-gonic/gin"
	apis "vrcm/src/vrcm/app/admin/apis/monitor"
	"vrcm/src/vrcm/app/admin/router"
)

func init() {
	router.NoCheckRole = append(router.NoCheckRole, registerMonitorEventRouter)
}

// registerMonitorEventRouter
func registerMonitorEventRouter(v1 *gin.RouterGroup) {
	api := apis.MonitorEvent{}
	r := v1.Group("/monitor_event")
	{
		r.POST("/get-list", api.GetPage)
		r.GET("/:id", api.Get)
		r.POST("/insert", api.Insert)
		r.POST("/update", api.Update)
		r.POST("/delete", api.Delete)
		r.POST("/save-program", api.SaveProgram)
		r.POST("/get-program", api.GetProgram)
		r.POST("/get-program-origin", api.GetProgramOrigin)
		r.POST("/update-program-index", api.UpdateProgramIndex)
		r.POST("/save-program-round", api.SaveProgramRound)
		r.POST("/save-event-monitor", api.SaveEventMonitor)
		r.POST("/delete-event-monitor", api.RemoveEventMonitor)
		r.POST("/start-event-monitor", api.StartEventMonitor)
		r.POST("/stop-event-monitor", api.StopEventMonitor)
		r.POST("/start-monitor", api.StartMonitor)
		r.POST("/stop-monitor", api.StopMonitor)
		r.POST("/delete-monitor", api.DeleteMonitor)
		r.POST("/enable-monitor", api.EnableMonitor)
		r.POST("/skip-program", api.SkipProgram)
		r.POST("/get-program-page", api.GetProgramPage)
		r.POST("/get-program-by-round", api.GetProgramByRound)
		r.POST("/get-current-time", api.GetCurrentTime)
		r.POST("/save-event-member", api.SaveEventMember)
		r.POST("/get-event-member", api.GetEventMember)
		r.POST("/get-bind-event-member", api.GetBindEventMember)
		r.POST("/delete-event-member", api.DeleteEventMember)
		r.POST("/get-member-code", api.GetMemberByCode)
		r.POST("/copy-event-monitor", api.CopyEventMonitor)
	}
}
